#ifndef _L2_SENDER_H_
#define _L2_SENDER_H_

#include "types.h"


typedef struct
{
    uint32_t seq_no;
    size_t timer_handle;  // 0 means no timer associated.

    void *frame_ptr;
    uint16_t frame_len;
    
    // statistics
    uint32_t retransmit_count;
    
}sender_buffer_t;


typedef struct
{
    uint16_t buffer_count;
    BOOL pending_buffers[MAX_SEQ + 1];
    uint16_t last_seq_num;
}sender_window_info_t;

#endif
